# Contributor: Thomas Kienlen <kommander@laposte.net>
# Maintainer: Thomas Kienlen <kommander@laposte.net>
pkgname=drawing
pkgver=1.0.1
pkgrel=0
pkgdesc="Simple image editor for Linux"
url="https://github.com/maoschanz/drawing"
arch="noarch"
license="GPL-3.0-or-later"
depends="
	py3-cairo
	py3-gobject3
	"
makedepends="
	appstream-glib
	desktop-file-utils
	itstool
	meson
	py3-cairo-dev
	py3-gobject3-dev
	"
source="
	https://github.com/maoschanz/drawing/archive/$pkgver/drawing-$pkgver.tar.gz
	fix-bindtextdomain.patch
	"
subpackages="$pkgname-lang"

build() {
	abuild-meson . build
	meson compile ${JOBS:+-j ${JOBS}} -C build
}

check() {
	meson test --no-rebuild --print-errorlogs -C build
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C build
}

sha512sums="
68d1381e56233eded1562aa3632a4ae3e0afb0b2835530cfab8d30c56557d2e04915ef153b7965abe3ba00d603c7b0e354f37c088df382bb4345d55dc3fe7c2e  drawing-1.0.1.tar.gz
a82cf5bb7c6936a1db20c3ab92bde0359f03437cddd8afa0477dc6808692963f55e386ead0bd3d6b67a70ce8dbbe3e863bb0f818b4bbfcdf8960da1920c6006f  fix-bindtextdomain.patch
"
